﻿/************************************************
 * Copyright (C) 2011 东北农业大学(NEAU)
 * 版权所有。
 * 文件名：StockRoomStuffDetail.aspx.cs
 * 版本号：v1.0
 * 文件功能描述：材料管理信息详细信息
 * 作者：侯建
 * 创建日期：2011.04.18
************************************************/
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.DBUtility;

namespace Jxym.wlkc2011.Module.Default.server.StockRoomStuff
{
    public partial class StockRoomStuffDetail : System.Web.UI.Page
    {
        MsSqlDal<model.StockRoomStuff> iNotice = new MsSqlDal<model.StockRoomStuff>();
        //MsSqlDal<model.StockRoomStuff> iNotice = new MsSqlDal<model.StockRoomStuff>();
        MsSqlDal<model.StockRoomStuffType> iNType = new MsSqlDal<model.StockRoomStuffType>();
        //MsSqlDal<model.StockRoomStuffType> iNType = new MsSqlDal<model.StockRoomStuffType>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["id2"] != null)
                {
                    int id = Convert.ToInt32(Request.Params["id2"]);
                    model.StockRoomStuff modelsr = iNotice.GetModel("ID=" + id, null);
                    lblPurchaseType.Text = iNType.GetModel("ID=" + modelsr.PurchaseType, null).StockRoomTypeName;
                    lblStockRoomName.Text = modelsr.StockRoomName;
                    lblStockRoomPrice.Text = modelsr.StockRoomPrice.ToString();
                    lblStockRoomCount.Text = modelsr.StockRoomCount.ToString();
                    lblStockRoomTime.Text = modelsr.StockRoomTime.ToString();
                    lblStockRoomRemark.Text = modelsr.StockRoomRemark;
                }
            }
        }
    }
}